home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ASL 120: Business 2
/
ASL 120: Business 2.iso
/
aslvol20
/
appl17
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1992-11-28
|
2KB
|
93 lines
@echo off
cls
echo/
echo Easy Agent for MS-DOS Install.bat
echo -----------------------------------
echo/
echo Use this program to install Easy Agent 1.45 on your system.
echo/
echo INSTALL.BAT requires approximately 600k bytes of free disk space.
echo Make sure the correct amount of disk space is available before
echo attempting to install. CTRL+C will exit the batch file.
echo/
rem Check arguments
if not "%1" == "" goto be_sure
if not "%2" == "" goto be_sure
if not "%3" == "" goto be_sure
rem Show usage summary
echo Usage: INSTALL disk-count source-drive destination-drive
echo/
echo Where:
echo disk-count is the number of floppy disks, 1
echo source-drive is a: or b:
echo destination-drive is c:, d:, etc
echo Example: INSTALL 1 a: c:
echo "Type-in INSTALL 1 a: c: to install Easy Agent onto C:> drive"
echo "Type-in INSTALL 1 a: b: to install Easy Agent onto Floppy Drive"
echo "Type-in INSTALL 1 a: d: to install Easy Agent onto D:> drive"
echo "If your Floppy disk is B:>, Type-in INSTALL 1 b: c:"
echo/
goto end
:be_sure
echo/
echo This program performs only minimal error checking; be sure your
echo parameters are correct.
echo/
echo Number of disks: %1
echo Source: %2
echo Destination: %3\realty
echo/
pause
rem Make destination directory
echo Creating %3\realty
if not exist %3\realty\*.* mkdir %3\realty
echo test >%3\realty\test.txt
if exist %3\realty\test.txt goto copy
echo %0: error unable to create %3\realty
goto end
:copy
del %3\realty\test.txt
echo/
echo Insert program disk
pause
rem Move to distribution disk
if exist %2\easy-a14.exe goto disk1
echo %0: error %2\easy-a14.exe not found
goto end
:disk1
echo Copying files from distribution disk
copy %2\ %3\realty
if %1 == 1 goto decompress
:decompress
rem Move to destination
%3
chdir %3\realty
if exist easy-a14.exe goto chdir_ok
echo %0: error moving to %3\realty (easy-a14.exe not found)
goto end
:chdir_ok
rem Decompress files
if exist easy-a14.exe easy-a14.exe
if exist lagent.exe lagent.exe
:exist_eagent
rem Done
cls
echo/
echo Easy Agent 1.45 for MS-DOS, installation complete.
echo Type-in AGENT and press enter to start the program.
echo
:end
echo/